.vue-uieditor {

  .control-left {
    padding-left: 15px !important;
  }

  .uieditor-drag-tree-active {
    .layui-tree-txt {
      color: #f7871f;
    }
  }

  /** 隐藏 */
  .uieditor-drag-hide {
    display: none !important;
  }

  /** 选择box */
  .uieditor-drag-sel-box {
    position: absolute;
    border: solid #2d8cf0 2px;
    background-color: transparent;
    min-width: 30px;
    min-height: 20px;
    pointer-events: none;

    .select-toolbar {
      display: block !important;
      z-index: 9990;
      position: absolute;
      background-color: rgba(45, 140, 240, 1) !important;
      color: #fff;
      text-align: center;
      padding: 2px;
      cursor: pointer;
      pointer-events: visible;
      top: 0;
      height: 16px;
      width: 16px;
      font-size: 12px;
      line-height: 16px;
      overflow: hidden;

      &:last-child {
        border-radius: 2px 0 0 0;
      }

      &:first-child {
        border-radius: 0 2px 0 0;
      }

      &:hover {
        background-color: darken(rgba(45, 140, 240, 1), 20%) !important;
      }
    }

    .title {
      background-color: #2d8cf0 !important;
      pointer-events: visible;
      display: block !important;
      top: -20px !important;
      position: absolute;
      height: 20px;
      left: -2px;
      padding: 0 4px;
      color: white;
      font-size: 12px;
      z-index: 9990;
      line-height: 1.5;
      white-space: nowrap;

      >i {
        cursor: pointer;
        font-size: 12px;
      }
    }
  }

  /** 拖动到box */
  .uieditor-drag-over-box {
    position: absolute;
    border: dashed orange 1px;
    background-color: transparent;
    pointer-events: none;

    .title {
      background-color: orange !important;
      pointer-events: visible;
      display: block !important;
      top: -20px !important;
      position: absolute;
      height: 20px;
      left: -2px;
      padding: 0 4px;
      border-radius: 2px;
      color: white;
      font-size: 12px;
      z-index: 1;
      display: none;
      line-height: 1.5;
      white-space: nowrap;

      >i {
        cursor: pointer;
        font-size: 12px;
      }
    }
  }

  /** 拖动位置线 */
  .uieditor-drag-pos-line {
    transition: top, left 300ms;
    position: absolute;
    border: solid #ff0000 2px;
    background-color: #ff0000;
    pointer-events: none;

    &.pos-line-box {
      background-color: transparent;
    }
  }

  /** JSON root节点(第一个)的样式 */
  .uieditor-drag-root {
    min-height: 75% !important;
    margin: 20px 10px 10px 10px;

    :focus {
      outline: none;
    }

    &:focus {
      outline: none;
    }
  }

  .uieditor-drag-content {
    min-height: 22px;

    &.over::after {
      content: '';
      clear: both;
      display: block;
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      top: 0;
      visibility: visible;
      height: 100%;
      z-index: 10;
    }

    &.inline {
      display: inline-block !important;
      min-height: 30px;
      line-height: 30px;
    }
  }

  /** empty */
  .uieditor-drag-empty {
    min-height: 25px;

    &.inline {
      display: inline-block !important;
      min-width: 40px;
    }
  }

  /** 改起 */
  .uieditor-drag-collapse {
    // height: 32px !important;
    // min-width: 100px !important;
    // overflow: hidden;
    border: 1px dashed #1e9fff !important;
    padding: 4px;

    &>.collapse-info {
      background-color: #1e9fff;
      color: white;
      padding: 0 4px;
      line-height: 28px;
      // overflow: hidden;
      // padding: 0 5px;
      // position: absolute;
      // font-size: 12px;
      // top: 2px;
      // left: 2px;
      // bottom: 2px;
      // right: 2px;
    }

    // &>* {
    //   display: none;
    // }
  }

  /** item样式 */
  .uieditor-drag-item {
    position: relative;

    &::after {
      content: '';
      clear: both;
      display: block;
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      top: 0;
      visibility: visible;
      height: 100%;
      z-index: 10;
    }

    &.inline {
      display: inline-block !important;
      min-height: 30px;
      line-height: 30px;
    }
  }

  .empty-component {
    background-color: rgba(0, 0, 0, .8);
    color: #fff;
    border: 2px solid #efff00;
    padding: 4px 12px;
    margin-right: 4px;
    min-height: 22px;
    line-height: 22px;
  }

  .drawing-item-border {
    border: 1px dashed rgba(0, 0, 0, .3);
    padding: 2px !important;

    &.control-left {
      padding-left: 15px !important;

    }
  }

}